#ifndef HISTORYWRITER_H
#define HISTORYWRITER_H

#include <QFile>
#include <QString>

#include "grid.h"

#include <vector>
using namespace std;

class HistoryWriter : QObject
{
    public:
        HistoryWriter();
        void saveHistory(Grid grid, const vector< vector<int> > & indices, int nActive, int prestimFrames, int stimFrames, int poststimFrames);
        void saveHistory(Grid grid, int ** squares, int prestimFrames, int stimFrames, int postStimFrames);

    public slots:
        void setSavePath(QString path);

    private:
        QString savePath;
        int randomStimFiles;
        int singleStimFiles;
        QFile *currentFile;
};

#endif // HISTORYWRITER_H
